package com.ktg.mes.dv.domain;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity;


/**
 * 温度数据对象 dv_temperature_data
 *
 * @author byteco
 * @date 2022-11-30
 */

@Data
@Accessors(chain = true)
@TableName("dv_temperature_data")
public class DvTemperatureData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工序项id */
    @TableId(value = "record_id", type = IdType.AUTO)
    private Long recordId;


    /** 生产关联（排产任务，生产设备，工序） */
    @Excel(name = "生产关联", readConverterExp = "排=产任务，生产设备，工序")
    private Long taskDeviceProcessRecordId;


    /** 任务id */
    @Excel(name = "任务id")
    private String taskId;

    /** 任务id */
    @Excel(name = "任务名称")
    private String taskName;

    /** 批次 */
    @Excel(name = "批次")
    private String batchNo;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;


    /** 设备id */
    @Excel(name = "设备id")
    private String deviceCode;


    /** 设备id */
    @Excel(name = "设备id")
    private String deviceName;

    /** 工序项ID */
    @Excel(name = "工序项ID")
    private Long processId;

    /** 工序项名称 */
    @Excel(name = "工序项名称")
    private String processName;


    /** 温度 */
    @Excel(name = "温度")
    private Double temp1;


    public void fromJSON(JSONObject jsonObject){
        setTemp1(jsonObject.getDouble("TEMP1"));
    }



}
